package pku.eecs.course_assitant;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class Function extends Activity {
    /** Called when the activity is first created. */
	
    @Override
    public void onCreate(Bundle savedInstanceState){
 
        super.onCreate(savedInstanceState);
        setContentView(R.layout.function);
        Button function_button1 =(Button) findViewById(R.id.function_button1);
        Button function_button2 =(Button) findViewById(R.id.function_button2);
      
        function_button1.setOnClickListener(new Button.OnClickListener()
        {
          
          public void onClick(View v)
          {
				Intent intent = new Intent();
				intent.setClass(Function.this,Add_classes.class);
				startActivity(intent);
				Function.this.finish();
          }
        });
        function_button2.setOnClickListener(new Button.OnClickListener()
        {
          
          public void onClick(View v)
          {
				Intent intent = new Intent();
				intent.setClass(Function.this,Login.class);
				startActivity(intent);
				Function.this.finish();
          }
        });
    }
}
